package designer.observer;

import designer.observer.impl.AlibabaOffer;
import designer.observer.impl.Observer1;
import designer.observer.impl.Observer2;
import designer.observer.inter.IObserver;
import designer.observer.inter.ISubject;

/**
 * 用户处理基本的设计模式
 * Created by tanlee on 2016/4/19.
 */
public class TestManage {

    /**
     * 调用测试方法
     */
    public static void testObserverDesigner(){
        AlibabaOffer subject = new AlibabaOffer();
        IObserver observerA = new Observer1(subject);
        IObserver observerB = new Observer2(subject);
        subject.setMsg("ali 给谭力一个 offer");
    }
}
